import globalConfig from "@/utils/config.js";
import { request } from "@/utils/http.js";

const baseUrl = globalConfig.microUrl;
/**
 * 供应链金融
 */
export default {
  getFinanceAccountInfo: (data) => {
    return request({
      url: `${baseUrl}/finance/financeAccount/getFinanceAccountInfo`,
      method: "GET",
      data
    }); // 获取资金账户信息
  },
  getProductAccountInfo: (data) => {
    return request({
      url: `${baseUrl}/finance/financeAccount/getProductAccountInfo`,
      method: "GET",
      data
    }); // 获取产品账户信息
  },
  getProductList: (data) => {
    return request({
      url: `${baseUrl}/finance/product/productList`,
      method: "GET",
      data
    }); // 供应链金融产品基本信息接口（采购融）
  },
  financeProductShowStatus: (data) => {
    return request({
      url: `${baseUrl}/finance/product/financeProductShowStatus`,
      method: "GET",
      data
    }); // 金融产品展示状态
  },
  getFinanceCredit: (data) => {
    return request({
      url: `${baseUrl}/finance/product/financeCredit`,
      method: "POST",
      data
    }); // 金融产品-授信
  },
  customerProductList: (data) => {
    return request({
      url: `${baseUrl}/finance/product/customerProductList`,
      method: "GET",
      data
    }); // 获取客户开通金融系统产品信息
  },
  manageProductList: (data) => {
    return request({
      url: `${baseUrl}/finance/product/manageProductList`,
      method: "GET",
      data
    }); // 经营融列表
  },
  replaceProductList: (data) => {
    return request({
      url: `${baseUrl}/finance/product/replaceProductList`,
      method: "GET",
      data
    }); // 经营融列表
  },
  rentProductList: (data) => {
    return request({
      url: `${baseUrl}/finance/product/rentProductList`,
      method: "GET",
      data
    }); // 有料融租
  }
};
